<!DOCTYPE html>
<html class="no-js css-menubar" lang="zh-cn">

<head>
    <title>主页</title>
    <meta charset="utf-8">
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit">
    <!-- 禁止百度SiteAPP转码 -->
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <!-- Chrome浏览器添加桌面快捷方式（安卓） -->
    <link rel="icon" type="image/png" href="/static/public/images/favicon.png">
    <meta name="mobile-web-app-capable" content="yes">
    <!-- Safari浏览器添加到主屏幕（IOS） -->
    <link rel="icon" sizes="192x192" href="/static/public/images/apple-touch-icon.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Admui">
    <!-- Win8标题栏及ICON图标 -->
    <link rel="apple-touch-icon-precomposed" href="/static/public/images/apple-touch-icon.png">
    <meta name="msapplication-TileImage" content="/static/public/images/app-icon72x72@2x.png">
    <meta name="msapplication-TileColor" content="#62a8ea">
    <!-- 样式 -->
    <link rel="stylesheet" href="/static/public/themes/classic/base/css/site.css" id="siteStyle">
    <!--[if lte IE 9]>
    <meta http-equiv="refresh" content="0; url='http://www.admui.com/ie/'"/>
    <![endif]-->
    <!--[if lt IE 10]>
    <script src="//static/public/vendor/media-match/media.match.min.js"></script>
    <script src="//static/public/vendor/respond/respond.min.js"></script>
    <![endif]-->
    <!-- 图标 CSS-->
    <link rel="stylesheet" href="/static/public/fonts/font-awesome/font-awesome.css">
    <link rel="stylesheet" href="/static/public/fonts/web-icons/web-icons.css">
    <!-- 插件 CSS -->
    <link rel="stylesheet" href="/static/public/vendor/animsition/animsition.css">
    <link rel="stylesheet" href="/static/public/vendor/toastr/toastr.css">
    <link rel="stylesheet" href="/static/public/css/demo.css">
    <link rel="stylesheet" href="/static/public/vendor/bootstrap-select/bootstrap-select.css">
    <link rel="stylesheet" href="/static/public/vendor/select2/select2.css">
    <link rel="stylesheet" href="/static/css/jquery.showLoading.css">

    <script src="/static/public/vendor/jquery/jquery.min.js"></script>
    <script src="/static/public/vendor/bootstrap/bootstrap.min.js"></script>


    <!-- 插件 -->
    <script src="/static/public/vendor/modernizr/modernizr.min.js"></script>
    <script src="/static/public/vendor/breakpoints/breakpoints.min.js"></script>
    <script src="/static/public/vendor/artTemplate/template.min.js"></script>
    <script src="/static/public/vendor/toastr/toastr.min.js"></script>
    <!-- 核心  -->
    <script src="/static/public/themes/classic/global/js/core.js"></script>
    <script src="/static/public/themes/classic/base/js/site.js"></script>
    <script src="/static/public/themes/classic/global/js/configs/site-configs.js"></script>
    <script src="/static/public/themes/classic/global/js/components.js"></script>
    <script src="/static/public/vendor/bootstrap-select/bootstrap-select.min.js"></script>
    <script src="/static/js/jquery.extend.js"></script>
    <!--<script src="/static/js/jquery.cookie.js"></script>-->
    <script src="/static/js/lang.core.js"></script>
    <script src="/static/js/sys.page.js"></script>
    <script src="/static/js/bootstrapValidator.js"></script>
    <!-- 百度统计 -->
    <script>

        $(function () {
            setPrjs();
        });
        function setPrjs() {
            $.ajax({
                url: "#springUrl('/sys/project/project/query')",
                data: {},
                type: "POST",
                success: function (text) {
                    var d = JSON.parse(text);
                    if (d.success && d.data) {
                        var prjId = $.cookie('prjId');
                        if (d.data.length > 0) {
                            var name = null;
                            $.each(d.data, function (index, row) {
                                if (prjId == row.id) {
                                    name = row.name;
                                    return;
                                }
                            });
                            if (name) {
                                $("#currentPrj").html(name);
                                setPrj(name);
                            } else {
                                $("#currentPrj").html(d.data[0].name);
                                setPrj(d.data[0].name);
                                $.cookie('prjId', d.data[0].id, {expires: 30, path: '/'});
                            }
                        }
                        var html = template('projectTpl', {prjList: d.data});
                        $("#projectContent").html(html);
                        $("#projectContent .list-group-item").click(function () {
                            var prjId = $(this).attr("prj-id");
                            $.cookie('prjId', prjId, {expires: 30, path: '/'});
                            window.location.reload();
                        });
                    }
                }
            });
        }
        function setPrj(name) {
            var needLeng=8;
            var nowLeng = name.length;
            if(nowLeng > needLeng){
                var name1 = name.substr(0,needLeng)+'...';
                $("#currentPrj1").html(name1);
            }else{
                $("#currentPrj1").html(name);
            }
        }
    </script>

    <script>
        Breakpoints();
    </script>
</head>

<body class="site-contabs-open site-menubar-unfold site-menubar-keep ">

<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-inverse " style="background-color: #03324e"
     role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle hamburger hamburger-close navbar-toggle-left hided"
                data-toggle="menubar">
            <span class="sr-only">切换菜单</span> <span class="hamburger-bar"></span>
        </button>
        <button type="button" class="navbar-toggle collapsed" data-target="#admui-navbarCollapse"
                data-toggle="collapse">
            <i class="icon wb-more-horizontal" aria-hidden="true"></i>
        </button>
        <div class="navbar-brand navbar-brand-center site-gridmenu-toggle" data-toggle="gridmenu">
            <img class="navbar-brand-logo visible-lg visible-xs navbar-logo"
                 src="/static/public/images/logo-glc.png"
                 title="glc">


            <span class="navbar-brand-logo visible-lg visible-xs navbar-logo" style="font-size: 14px">物流规划与决策系统</span>

            <img class="navbar-brand-logo hidden-xs hidden-lg navbar-logo-mini"
                 src="/static/public/images/logo-glc.png" title="glc">
        </div>
    </div>
    <div class="navbar-container container-fluid">
        <div class="collapse navbar-collapse navbar-collapse-toolbar" id="admui-navbarCollapse">
            <ul class="nav navbar-toolbar navbar-left">
                <li class="hidden-float">
                    <a data-toggle="menubar" class="hidden-float" href="javascript:;" role="button"
                       id="admui-toggleMenubar">
                        <i class="icon hamburger hamburger-arrow-left">
                            <span class="sr-only">切换目录</span>
                            <span class="hamburger-bar"></span>
                        </i>
                    </a>
                </li>
                <li class="navbar-menu nav-tabs-horizontal nav-tabs-animate is-load" id="admui-navMenu">
                    <ul class="nav navbar-toolbar nav-tabs" role="tablist">
                        <!-- 顶部菜单 -->

                        #foreach( $menu in $menuList )
                        <li role="presentation" class="#if($velocityCount == 1) active #end ">
                            <a data-toggle="tab" href="#admui-navTabsItem-$velocityCount"
                               aria-controls="admui-navTabsItem-$velocityCount" role="tab" aria-expanded="false">
                                <i class="icon wb-library"></i> <span >${menu.title}</span>
                            </a>
                        </li>
                        #end
                    </ul>
                </li>
            </ul>
            <ul class="nav navbar-toolbar navbar-right navbar-toolbar-right">
                <li class="dropdown" id="admui-navbarMessage" title="项目切换" data-toggle="tooltip"
                    data-placement="bottom">
                    <a data-toggle="dropdown" href="javascript:;" class="msg-btn" aria-expanded="false"
                       data-animation="scale-up" role="button">
                        <i  ><span
                                id="currentPrj1"></span></i>
                        <i class="icon wb-layout" aria-hidden="true"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-right dropdown-menu-media" role="menu" style="width: 300px;">
                        <li class="dropdown-menu-header" role="presentation" style="padding: 10px 20px;">
                            <h5>项目切换&nbsp;&nbsp;&nbsp;<span style="color:red;font-size: 4px;">[当前：<span
                                    id="currentPrj"></span>]</span></h5>
                            <span class="label label-round label-danger"></span>
                        </li>
                        <li class="list-group" role="presentation">
                            <div class="navbar-message-content" id="projectContent" data-height="220px"
                                 data-plugin="slimScroll">
                            </div>
                            <script type="text/html" id="projectTpl">
                                {{if prjList.length < 1}}
                                <p class="text-center height-200 vertical-align">
                                    <small class="vertical-align-middle opacity-four">没有项目</small>
                                </p>
                                {{else}}
                                {{each prjList}}
                                <a class="list-group-item" href="#" prj-id="{{$value.id}}"
                                   data-title="{{$value.name}}" role="menuitem">
                                    <div class="media">
                                        <div class="media-left padding-right-10">
                                            <i class="icon fa-tasks task white icon-circle" aria-hidden="true"></i>
                                        </div>
                                        <div class="media-body">
                                            <h6 class="media-heading">{{$value.name}}</h6>
                                            <time class="media-meta">
                                                {{dateFormat($value.createTime,'yyyy年 MM月 dd日 hh:mm:ss')}}
                                            </time>
                                        </div>
                                    </div>
                                </a>{{/each}}
                                {{/if}}
                            </script>
                        </li>
                        <li class="dropdown-menu-footer" role="presentation">
                            <a href="/sys/project/list" target="_blank" data-pjax="">
                                <i class="icon fa-navicon"></i> 所有项目
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="hidden-xs" id="admui-navbarFullscreen" data-toggle="tooltip" data-placement="bottom"
                    title="全屏">
                    <a class="icon icon-fullscreen" data-toggle="fullscreen" href="#" role="button">
                        <span class="sr-only">全屏</span></a>
                </li>
                <li title="退出" class="hidden-xs" data-toggle="tooltip" data-placement="bottom">
                    <a class="icon fa-sign-out" id="admui-signOut" href="/">
                        <span class="sr-only">退出</span></a>
                </li>

            </ul>
        </div>
    </div>
</nav>
<nav class="site-menubar site-menubar-dark">
    <div class="site-menubar-body">
        <div class="tab-content height-full" style="background-color: #415168" id="admui-navTabs">
            <!-- 一级菜单 -->
            #foreach( $menu in $menuList )
            <div class="tab-pane animation-fade height-full #if($velocityCount == 1) active #end"
                 id="admui-navTabsItem-$velocityCount" role="tabpanel">
                <div>
                    <ul class="site-menu">
                        <!-- 二级菜单 -->
                        <li class="site-menu-category"></li>
                        <li class="site-menu-item">
                            #foreach( $m in $menu.mvList)
                        <li class="site-menu-item #if($m.mvList) has-sub #end">
                            <a data-pjax href="#springUrl(${m.url})" target="_blank">
                                <i class="site-menu-icon fa-laptop" aria-hidden="true"></i>
                                <span class="site-menu-title" >${m.title}</span>
                                #if($m.mvList) <span class="site-menu-arrow"></span> #end
                            </a>
                            <ul class="site-menu-sub" #if(!$m.mvList) style=" display:none " #end>
                                #foreach( $mm in $m.mvList)
                                <li class="site-menu-item #if($mm.mvList) has-sub #end">
                                    <a data-pjax href="#springUrl(${mm.url})" target="_blank">
                                        <!--以后的图标修改   <i class="site-menu-icon fa-laptop" aria-hidden="true"></i>-->
                                        <span class="site-menu-title" >${mm.title}</span>
                                        #if($mm.mvList) <span class="site-menu-arrow"></span> #end
                                    </a>
                                    <ul class="site-menu-sub" #if(!$mm.mvList) style=" display:none " #end>
                                        #foreach( $mmm in $mm.mvList)
                                        <li class="site-menu-item ">
                                            <a data-pjax href="#springUrl(${mmm.url})" target="_blank">
                                                <span class="site-menu-title">${mmm.title}</span>
                                            </a>
                                        </li>
                                        #end
                                    </ul>
                                    #end
                            </ul>
                        </li>
                        #end

                    </ul>
                </div>
            </div>
            #end
        </div>
    </div>
</nav>
<nav class="site-contabs" id="admui-siteConTabs">
    <button type="button" class="btn btn-icon btn-default pull-left hide">
        <i class="icon fa-angle-double-left"></i>
    </button>
    <div class="contabs-scroll pull-left">
        <ul class="nav con-tabs">
            <li class="active">
                <a data-pjax href="/index" rel="contents"><span><i class="icon wb-home"></i> &nbsp;首页</span></a>
            </li>
        </ul>
    </div>
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-icon btn-default hide">
            <i class="icon fa-angle-double-right"></i>
        </button>
        <button type="button" class="btn btn-default dropdown-toggle btn-outline" data-toggle="dropdown"
                aria-expanded="false">
            <span class="caret"></span> <span class="sr-only">切换菜单</span>
        </button>
        <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="conTabsDropdown" role="menu">
            <li class="reload-page" role="presentation">
                <a href="javascript:;" role="menuitem"><i class="icon wb-reload"></i> 刷新当前</a>
            </li>
            <li class="close-other" role="presentation">
                <a href="javascript:;" role="menuitem"><i class="icon wb-close"></i> 关闭其他</a>
            </li>
            <li class="close-all" role="presentation">
                <a href="javascript:;" role="menuitem"><i class="icon wb-power"></i> 关闭所有</a>
            </li>
        </ul>
    </div>
</nav>

<main class="site-page">
    <div class="page-container" id="admui-pageContent">
        #parse("${mainUrl}.html")
    </div>
    <div class="page-loading vertical-align text-center">
        <div class="page-loader loader-default loader vertical-align-middle" data-type="default"></div>
    </div>
</main>

<div class="modal fade" id="dialog" aria-hidden="true" aria-labelledby="addMenu" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-center">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" aria-hidden="true" data-dismiss="modal">×</button>
                <h4 class="modal-title"></h4>
            </div>
        </div>
    </div>
</div>
<!-- 布局 -->
<script src="/static/public/themes/classic/base/js/sections/menu.js"></script>
<script src="/static/public/themes/classic/base/js/sections/media-menu.js"></script>
<script src="/static/public/themes/classic/base/js/sections/content-tabs.js"></script>

<!-- 插件 -->
<script src="/static/js/jquery.showLoading.js"></script>
<script src="/static/public/vendor/jquery-pjax/jquery.pjax.js"></script>
<script src="/static/public/themes/classic/global/js/plugins/responsive-tabs.js"></script>
<script src="/static/public/vendor/ashoverscroll/jquery-asHoverScroll.min.js"></script>
<script src="/static/public/vendor/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/public/vendor/screenfull/screenfull.min.js"></script>

<!-- 示例 -->
<script type="text/javascript" src="/static/js/echarts/echarts.min.js"></script>
<script type="text/javascript" src="/static/js/echarts/china.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/macarons.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/shine.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/essos.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/westeros.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/dark.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/halloween.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/infographic.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/purple-passion.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/roma.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/vintage.js"></script>
<script type="text/javascript" src="/static/js/echarts/theme/wonderland.js"></script>


<!-- CSS -->
<link rel="stylesheet" href="/static/public/vendor/datatables-bootstrap/dataTables.bootstrap.css">
<link rel="stylesheet" href="/static/css/bootstrapValidator.css">
<!-- JS -->
<script src="/static/public/vendor/datatables/jquery.dataTables.min.js"></script>
<script src="/static/public/vendor/datatables-bootstrap/dataTables.bootstrap.min.js"></script>
<script src="/static/public/vendor/datatables-bootstrap/dataTables.responsive.min.js"></script>

<script src="/static/public/vendor/bootstrap-daterangepicker/moment.min.js"></script>
<script src="/static/public/vendor/bootstrap-daterangepicker/daterangepicker.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=Ffk11XhVK5DAWtkd6CGEzmunwETIjqgK"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/LuShu/1.2/src/LuShu_min.js"></script>
<script src="/static/public/vendor/select2/select2.min.js" data-name="select2"></script>
<script src="/static/public/vendor/select2/i18n/zh-CN.min.js" data-deps="select2"></script>
<script src="/static/plugins/layer-v2.2/layer/layer.js"></script>
</body>
</html>
<style type="text/css">
    .navbar-toolbar > li.active{
        background-color: #00a99d;
    }
</style>

